Skip to content

AGENTS: enforce branch-first sessions and no direct main/base edits#20

Merged
NagyVikt merged 1 commit intomainfrom
agent/codex/20260411-144118-lajos-edix-hu-no-direct-main-branch-edits-policy
Apr 11, 2026
Merged

AGENTS: enforce branch-first sessions and no direct main/base edits#20
NagyVikt merged 1 commit intomainfrom
agent/codex/20260411-144118-lajos-edix-hu-no-direct-main-branch-edits-policy

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Summary\n- make and checked-out base branches explicitly read-only in AGENTS working agreements\n- require every new session to start with branch 'agent/agent/20260411-144234-lajos-edix-hu-task' set up to track 'origin/main'.

HEAD is now at 3f4f624 Document real VS Code repo layout and codex-auth pairing workflow (#19)
[agent-branch-start] Created branch: agent/agent/20260411-144234-lajos-edix-hu-task
[agent-branch-start] Worktree: /home/deadpool/Documents/multiagent-safety/.omx/agent-worktrees/agent__codex__20260411-144118-lajos-edix-hu-no-direct-main-branch-edits-policy/.omx/agent-worktrees/agent__agent__20260411-144234-lajos-edix-hu-task
[agent-branch-start] Next steps:
cd "/home/deadpool/Documents/multiagent-safety/.omx/agent-worktrees/agent__codex__20260411-144118-lajos-edix-hu-no-direct-main-branch-edits-policy/.omx/agent-worktrees/agent__agent__20260411-144234-lajos-edix-hu-task"
python3 scripts/agent-file-locks.py claim --branch "agent/agent/20260411-144234-lajos-edix-hu-task" <file...>

implement + commit

bash scripts/agent-branch-finish.sh --branch "agent/agent/20260411-144234-lajos-edix-hu-task" before edits\n- document immediate recovery path when accidental edits land on main/base\n\n## Verification\n- npm test (46/46)

Codify a strict branch-isolation rule for every new session so work starts on dedicated agent branches/worktrees, and document immediate recovery steps when accidental edits land on main or another base branch.

Constraint: User explicitly requested never writing directly to main/current local branch
Rejected: Keep existing softer guidance only | not strong enough to prevent repeat workflow drift
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep branch-isolation language aligned with agent-branch-start/finish scripts and avoid reintroducing main-branch exceptions
Tested: npm test (46/46)
Not-tested: GitHub markdown rendering diff
@NagyVikt NagyVikt merged commit 4f6e95c into main Apr 11, 2026
7 checks passed
@NagyVikt NagyVikt deleted the agent/codex/20260411-144118-lajos-edix-hu-no-direct-main-branch-edits-policy branch April 20, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant